package cn.wizzer.app.user.modules.services;

import cn.wizzer.app.user.modules.models.Goods;
import cn.wizzer.framework.base.service.BaseService;
import cn.wizzer.framework.page.Pagination;

import java.util.List;

public interface GoodsService extends BaseService<Goods> {
    /**
     * 前、后台商品分页接口
     *
     * @param pageNumber    页容量
     * @param pageSize      页码
     * @param searchKeyword 关键字
     * @param isPlatform    后台查询为true，前台false
     * @return
     */
    Pagination listPage(int pageNumber, int pageSize, String language, String searchKeyword, boolean isPlatform);


    /**
     * 查询轮播图商品
     *
     * @param language
     * @return
     */
    List<Goods> queryByLanguage(String language);
}
